package model

type SysLogLogin struct {
	DcModel
	LoginEmpeeAcct string `json:"login_empee_acct" gorm:"comment:登录工号;index"`
	LoginIp        string `json:"login_ip" gorm:"comment:登录IP;index"`
	LoginBrowser   string `json:"login_browser" gorm:"comment:登录浏览器;"`
	LoginOs        string `json:"login_os" gorm:"comment:登录操作系统;"`
	LoginPlatform  string `json:"login_platform" gorm:"comment:登录平台;"`
	LoginSuccess   string `json:"login_success" gorm:"是否登录成功;index"`
}

type RequestGetLogLoginList struct {
	RequestPageAndSort
	LoginEmpeeAcct string `json:"login_empee_acct"`
	LoginSuccess   string `json:"login_success"`
}

type SysLogOperation struct {
	DcModel
	OperationEmpeeAcct string `json:"operation_empee_acct" gorm:"comment:请求工号;index"`
	OperationIp        string `json:"operation_ip" gorm:"comment:请求IP;"`
	OperationMethod    string `json:"operation_method" gorm:"comment:请求方法"`
	OperationApi       string `json:"operation_api" gorm:"comment:请求Api;"`
	OperationStatus    int    `json:"operation_status" gorm:"comment:请求状态;"`
}

type RequestGetLogOperationList struct {
	RequestPageAndSort
	OperationEmpeeAcct string `json:"operation_empee_acct"`
}
